@import '../../../css/colorVar.less';

.portfolioTracking {
  position: relative;

  :global {
    .ant-tabs-nav {
      margin-bottom: 0 !important;
    }
    //tab
    .ant-tabs-bar {
      margin-bottom: 0;
      width: 90%;
    }

    //一键删除显示
    .ant-tabs-bar > .ant-tabs-nav-container:hover {
      .ant-tabs-tab:last-child {
        visibility: visible;
      }
    }

    //一键删除隐藏
    .ant-tabs-bar > .ant-tabs-nav-container .ant-tabs-tab:last-child {
      visibility: hidden;
      border: none;
      border-radius: 0;
      background: transparent;
    }
  }
  //指标模块
  .target {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .targetItem:last-child {
      margin-right: 0;
    }

    .targetItem {
      height: 100px;
      flex-grow: 1;
      position: relative;
      border-radius: 4px;
      border: 1px solid @border_color;
      overflow: hidden;
      padding: 20px 0 20px 20px;
      margin: 16px 20px 0 0;

      .targetTitle {
        font-size: 16px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: @table_body_text;
        line-height: 24px;
        margin-bottom: 7px;
        display: inline-block;
      }

      .targetContent {
        font-size: 22px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        line-height: 32px;
        color: @table_body_text;
        width: 200px;

        .upCompare {
          color: @text_red;
        }

        .downCompare {
          color: @text_green;
        }
      }

      .targetImg {
        position: absolute;
        width: 40px;
        height: 40px;
        bottom: 16px;
        right: 20px;
      }

      .targetLine {
        position: absolute;
        width: 4px;
        height: 100px;
        left: 0;
        top: 0;
        background: @butt_primary !important;
      }
    }
  }

  //区间收益率按钮
  .fixedBtn {
    position: fixed;
    border-radius: 4px 0 0 4px;
    overflow: hidden;
    transition: all 0.5s;
    z-index: 3;

    .drawerTitle {
      font-size: 14px;
      font-weight: 500;
      color: @table_body_text;
      padding: 12px 16px;
      background: #f5f8ff;
      border: 1px solid @barBorder_color;

      .drawerImg {
        width: 12px;
        height: 12px;
        margin-left: 8px;
        transform: rotate(90deg);
      }
    }
  }

  //区间收益率表格
  .drawerRender {
    width: 372px;
    position: fixed;
    border-radius: 4px;
    box-shadow: 2px 4px 12px 0 @butt_primary_hover;
    background: @table_odd_bg;
    overflow: hidden;
    transition: all 0.5s;
    z-index: 3;

    .drawerTitle {
      font-size: 14px;
      font-weight: 500;
      color: @table_body_text;
      padding: 12px 16px;
      background: #f5f8ff;
      border: 1px solid @barBorder_color;

      .drawerImg {
        width: 12px;
        height: 12px;
        margin-left: 8px;
        transform: rotate(-90deg);
      }
    }
  }
}
